<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<h1>Invoice  Date:  <?php echo $this->date;?>  Shop : <?php echo $this->shop;?> 
</h1>
<table width="900" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col" style="width:30px;">No.</th>
    <th scope="col">Invoice #</th>
    <th scope="col">Time</th>
    <th scope="col">Staff</th>
    <th scope="col">Qty</th>
    <th scope="col">Total Amt</th>
    <th scope="col">Ref</th>
  </tr>
  <?php 
  if(!empty($this->invList)){
	  $cot = 0;
  foreach($this->invList as $key => $v){?>
  <tr>
    <td><?php echo $cot++;?></td>
    <td><a href="/products/online-invoice-public/shop/<?php echo $this->shop;?>/inv/<?php echo $v['INV_NO']?>"><?php echo $v['INV_NO']?></a></td>
    <td><?php echo $v['TIME']?></td>
    <td><?php echo $v['SAL_CODE']?></td>
    <td><?php echo (int)$v['QTY_TOTAL']?></td>
    <td>$<?php echo $v['PAY_TOTAL']?></td>
    <td><?php echo $v['REF']?></td>
  </tr>
  <?php }
  }
  ?>
</table>


</body>
</html>
